<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
         <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/font.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/xadmin.css">
    </head>
    <body>
    
    <div class="x-body">
        <blockquote class="layui-elem-quote">欢迎管理员：
            <span class="x-red">${username}</span>！当前时间:<span class="x-date">2018-04-25 20:50:53</span>
        </blockquote>
        <fieldset class="layui-elem-field">
            <legend>数据统计</legend>
            <div class="layui-field-box">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>员工人数</h3>
                                                <p>
                                                    <cite>${staffTotal}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>部门数</h3>
                                                <p>
                                                    <cite>${departTotal}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>管理员数</h3>
                                                <p>
                                                    <cite>${userTotal}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>最大部门：${departName}</h3>
                                                <p>
                                                    <cite>${maxDepartNum}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>人数>=10的部门</h3>
                                                <p>
                                                    <cite>${maxNum10}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                               <h3>人数<10的部门</h3>
                                                <p>
                                                    <cite>${minNum10}</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统通知</legend>
            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <tbody>
                        <tr>
                            <td >
                                <a class="x-a" href="#">最新消息：梦想集团正准备收购阿里巴巴,腾讯,百度,字节跳动等国内知名互联网企业,一时间举世闻名！</a>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <a class="x-a" href="#">交流qq:(878747682)</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统信息</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>xxx版本</th>
                            <td>1.0.180420</td></tr>
                        <tr>
                            <th>服务器地址</th>
                            <td>www.wxiang.shop</td></tr>
                        <tr>
                            <th>操作系统</th>
                            <td>Linux</td></tr>
                        <tr>
                            <th>运行环境</th>
                            <td>Tomcat8.5,Nginx</td></tr>
                        <tr>
                            <th>PHP版本</th>
                            <td>5.6.27</td></tr>
                        <tr>
                            <th>MYSQL版本</th>
                            <td>5.5.53</td></tr>
                        <tr>
                            <th>ThinkPHP</th>
                            <td>5.0.18</td></tr>
                        <tr>
                            <th>上传附件限制</th>
                            <td>2M</td></tr>
                        <tr>
                            <th>执行时间限制</th>
                            <td>30s</td></tr>
                        <tr>
                            <th>剩余空间</th>
                            <td>86015.2M</td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>开发团队</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>版权所有</th>
                            <td>xiemuxiang
                                <a href="http://www.wxiang.shop/" class='x-a' target="_blank">访问官网</a></td>
                        </tr>
                        <tr>
                            <th>开发者</th>
                            <td>谢梦想(878747682@qq.com)</td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由x-admin提供技术支持。</blockquote>
    </div>
        <script type="text/javascript">
	        function NowTime(){
	            var myDate = new Date;
	            var year = myDate.getFullYear(); //获取当前年
	            var mon = myDate.getMonth() + 1; //获取当前月
	            var date = myDate.getDate(); //获取当前日
	             var h = myDate.getHours();//获取当前小时数(0-23)
	             var m = myDate.getMinutes();//获取当前分钟数(0-59)
	             var s = myDate.getSeconds();//获取当前秒
	            var week = myDate.getDay();
	            var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
	            $(".x-date").html(year + "年" + mon + "月" + date + "日" +h+"点"+m+"分"+s+"秒&nbsp;"+weeks[week]);
	        }
	        //页面加载调用
            window.onload=function(){
                //每1秒刷新时间
              setInterval("NowTime()",1000);
            }
        </script>
    </body>
</html>